package sunyu.tools.common;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.springframework.stereotype.Component;

/**
 * 解析HTML工具类
 * <p>
 * https://jsoup.org/
 *
 * @author 孙宇
 */
@Component
public class HtmlTools {

    /**
     * 解析html
     *
     * @param html
     * @return
     */
    public Document parse(String html) {
        return Jsoup.parse(html);
    }

}
